package com.zd.service.impl;

import com.zd.mapper.PracticeTypeMapper;
import com.zd.model.PracticeType;
import com.zd.service.IPracticeTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class PracticeTypeServiceImpl implements IPracticeTypeService {

    @Autowired
    private PracticeTypeMapper practiceTypeMapper;


    @Override
    public List<PracticeType> selectPracticeTypeInfo() {
        return practiceTypeMapper.selectPracticeTypeInfo();
    }

    @Override
    public PracticeType selectByPrimaryKey(int id) {
        return practiceTypeMapper.selectByPrimaryKey(new Long (id));
    }
}
